import axios from "axios"


const $request = axios.create({
    // baseURL:"http://12.12.12.92:5003/",
    timeout: 50000,
    headers: {
        "Content-Type": "application/x-www-form-urlencoded; charset=utf-8;"
      }
})

//请求拦截
$request.interceptors.request.use(
    function (config) {
        return config
    },
    function (error) {
        return Promise.reject(error)
    }
)

//响应拦截
$request.interceptors.response.use(
	function(response) {
		return response
	},
	function(error) {
		return Promise.reject(error)
	}
)

export default $request;